﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace Tunnel_Cross_Section.DeviceConfig
{
    public partial class RegisterDeviceFrm : Office2007Form
    {
        DeviceConfigHelper helper;
        public event EventHandler Save;
        public RegisterDeviceFrm(DeviceConfigHelper h)
        {
            InitializeComponent();
            helper = h;
        }


        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            helper.AddDeivce(textBoxX1.Text, doubleInput1.Value);
            if (Save != null)
            {
                Save(this, null);
            }
        }
    }
}
